﻿using System.Collections.Generic;

namespace Agile.Paypal
{
    /// <summary>
    /// Class CommerceManager
    /// </summary>
    public static class MerchantManager
    {
        static MerchantManager()
        {
            List = new List<Merchant>();
        }

        /// <summary>
        /// Gets the registered commerces.
        /// </summary>
        /// <value>The registered commerces.</value>
        public static IList<Merchant> List { get; private set; }

        /// <summary>
        /// Registers the specified commerce.
        /// </summary>
        /// <param name="commerce">A commerce.</param>
        /// <exception cref="System.ArgumentException"></exception>
        public static void Register(Merchant commerce)
        {
            List.Add(commerce);
        }
    }
}
